const {mock,Random} = require('mockjs')
const {boolean} = require("mockjs/src/mock/random/basic");
const mockTableList = mock({
    'total': 100,
    'list|100': [{
        'id|+1': 1,
        'username': function () {
            return mock(/\w{4,5}/)
        },
        'roles|1': ['editor','admin'],
        'phone': mock(/1\d{10}/),
        'status':function (){
            return  boolean()
        },
        'email': '@email',
        'createTime': '@datetime',

    }]
})

module.exports = {
    mockTableList
}
